import React, { useEffect } from "react"
import { ConfigProvider } from "antd"
import { getLocale, IRouteComponentProps } from "umi"
import { ModalContext } from "@ruler3d/antd"
const ProjectEntry: React.FC<IRouteComponentProps> = props => {
  useEffect(() => {
    document.getElementById("app").classList.add(getLocale())
  }, [])
  return (
    <ConfigProvider>
      <ModalContext>{props.children}</ModalContext>
    </ConfigProvider>
  )
}
export default ProjectEntry
